<?php

class Model extends \Eloquent 
{

	protected $table='models';

	public function field()
    {
        return $this->hasMany('Field','model_id','id');
    }

    public function category()
    {
    	return $this->hasMany('Category','model_id','id');
    }

}

?>